package com.zzb.framework.user.components;

import com.zzb.framework.role.entity.IUser;
import com.zzb.framework.role.vo.UserLoginVo;
import com.zzb.framework.user.entity.User;
import com.zzb.framework.user.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.servlet.http.HttpServletRequest;

/**
 * 获取当前用户
 * Created by zhangzhenbin on 17-5-8.
 */
@Component("frameworkUserManager")
public class FrameworkUserManager extends AbstractUserManager<UserLoginVo> {
    @Autowired
    private HttpServletRequest request;

    @Override
    public String getSessionKey() {
        return "FRAMEWORK_USER_SESSION";
    }

    @Override
    public HttpServletRequest getRequest() {
        return request;
    }
}
